home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news.ridgecrest.ca.us!usenet
- From: mojaveg@ridgecrest.ca.us (Everett M. Greene)
- Subject: Re: How adjust window borders?
- X-Nntp-Posting-Host: annex028
- Content-Type: text/plain; charset=iso-8859-1
- Message-ID: <19960307.7D760F8.631F@mojaveg.ridgecrest.ca.us>
- Sender: usenet@ridgecrest.ca.us (Ridgenet Usenet admin)
- Content-Transfer-Encoding: 8bit
- Organization: none that you'd notice
- X-Newssoftware: GRn 2.1 Feb 19, 1994
- References: <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> <ehb.02st@draco.prima.ruhr.de> <4gm1af$i15@the-fly.zip.com.au> <4hhhpr$qc9@info.epfl.ch>
- Mime-Version: 1.0
- Date: Thu, 7 Mar 1996 14:21:50 GMT
-
- In article <4hhhpr$qc9@info.epfl.ch> vez@de.epfl.ch (Philippe Vez) writes:
- > Stuart Mackinnon (stuartm@zip.com.au) wrote:
- > : In article <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> mojaveg@ridgecrest.ca.us (Everett M. Greene) writes:
- > : >I wish to be able to directly control the size of the window borders
- > : >for a window which has no border gadgets or text. The window opens
- > : >as desired but I would prefer to have all four borders a bit wider.
- > : >The implications in the RKM are that WA_InnerWidth and WA_InnerHeight
- > : >should have some effect on border widths, but trying these seems to
- > : >have no visible effect whatsoever. Any ideas?
- >
- > : What I am about to tell you is not very system friendly!!! Be warned!!
- > [snip]
- > : This lets you adjust your window's borders, but I would recommend NOT
- > : doing it.
- >
- > As you said, it's not very system friendly. There is another way that is
- > discussed in the RKM I think.
- >
- > Before Opening your window add Gadgets ( WA_Gadgets ) in the borders that don't
- > have an imagery, don't forget to set the proper flags (something like
- > GFLG_RIGHTBORDER, etc..) . Simply adjust the Height and Width of the gadgets
- > to the width you'd like the windows borders have.
- > Intuition will automatically adjust the window borders to keep your invisible
- > border gadgets inside the border (argh.. not so good english...)
-
- Excerpt from intuition.h:
-
- /* if any of the BORDER flags are set in a Gadget that's included in the
- * Gadget list when a Window is opened, the corresponding Border will
- * be adjusted to make room for the Gadget
- */
- #define GACT_RIGHTBORDER 0x0010
- #define GACT_LEFTBORDER 0x0020
- #define GACT_TOPBORDER 0x0040
- #define GACT_BOTTOMBORDER 0x0080
- #define GACT_BORDERSNIFF 0x8000 /* neither set nor rely on this bit */
-
- The comment about the borders being adjusted for the size of the
- gadget(s) is fine, but my original posting said that I have NO
- gadgets to place in the borders. One could use the trick of a
- zero-sized gadget, but that would increase the border width by
- zero.
-
- -----------------------------------------------------------------------
- Everett M. Greene (The Mojave Greene, crotalus scutulatus scutulatus)
- Ridgecrest, Ca. 93555 Path: mojaveg@ridgecrest.ca.us
-